<%@taglib prefix="s" uri="/struts-tags" %>

<script type="text/javascript">	
	var temp=document.cookie.split(";");
    var ts;
    for (var i=0;;i++){
        if(!temp[i])
     	   break;	            
        ts=temp[i].split("=")[0];
        if(ts == "userId"){
           ts = temp[i].split("=")[1];
           break;
        }           
    }
    if(ts == "-1000" || ts == null){		       
       location.href = "${pageContext.request.contextPath}/admin/loginInit.action";
    }
</script>